﻿namespace UFSoft.UBF.Cust.ClassView.MVC.Metedata
{
    /// <summary>
    /// 值集值定义
    /// </summary>
    public class ValueSetDefDTO
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }

        /// <summary>
        ///     类型
        /// </summary>
        public int ValidateType { get; set; }

        /// <summary>
        ///     段值类型
        /// </summary>
        public int ValueType { get; set; }

        /// <summary>
        ///     精度
        /// </summary>
        public int Pricision { get; set; }

        /// <summary>
        ///     最小值
        /// </summary>
        public string MinValue { get; set; }

        /// <summary>
        ///     最大值
        /// </summary>
        public string MaxValue { get; set; }

        /// <summary>
        ///     编码最大长度
        /// </summary>
        public int Length { get; set; }

        /// <summary>
        ///     枚举类型
        /// </summary>
        public KeyDTO EnumType { get; set; }

        /// <summary>
        ///     实体类型
        /// </summary>
        public KeyDTO EntityType { get; set; }

        /// <summary>
        ///     ID字段名
        /// </summary>
        public KeyDTO IDAttribute { get; set; }

        /// <summary>
        ///     对应编码字段
        /// </summary>
        public KeyDTO CodeAttribute { get; set; }

        /// <summary>
        ///     对应名称字段
        /// </summary>
        public KeyDTO NameAttribute { get; set; }

        /// <summary>
        ///     过滤条件
        /// </summary>
        public string Condition { get; set; }

        /// <summary>
        ///     过滤条件(显示名称)
        /// </summary>
        public string ConditionDisplayName { get; set; }
    }
}